package com.intellagric.agriecom.module.agriecom_news_type;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.pojo.AgriecomNewsType;

import java.util.List;

public interface NewsTypeService {
    ResponseMessage selectNewsTypeById(String id);

    ResponseMessage insertNewsType(AgriecomNewsType newsType);

    ResponseMessage deleteNewsType(String id);

    ResponseMessage editNewsType(AgriecomNewsType newsType);

    LayuiDataGridResult getList(int page, int rows);

    List<AgriecomNewsType> getAll();

    LayuiDataGridResult getTypeByParentID(String parentID);

    LayuiDataGridResult getTreeList();
}
